<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.hotel.VHotelBase"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

 <link rel="stylesheet" type="text/css" href="css/tendercss.css">	
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>
		<title>酒店信息</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
<div id="index-back">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Body Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="frontbg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
					<div class="row">
						<div class="span-2 col">
							<h2 class="h2color" >酒店</h2>
								</div>	
						<div class="span-10 col" id="websitesearchdiv" >
						
						<form action="tofronthotelindex" name="scenicSearchForm" method="post" onSubmit="return scenicSearchSubmit(this);" >
							<h4 class="widget-title at-float-right">
							<span><label for="hotelName" class="seachfont"> 酒店名称:</label></span>
							<input type="text" id="hotelName" class="input-width " name="strHotelName" maxlength="64" value="${strHotelName}"/>
							
							
							<span><label for="hotelZoneID" class="seachfont">所属区域：</label></span>			
							<select class="input-select-vlign  select-height" id="hotelZoneID" name="strProvinceID" emptyOption="false"
								onchange="changeSelect(this,'getLevel4','level3','ZoneID')">
									<option value="" <c:if test="${strProvinceID==''}"> selected="selected"</c:if>>--请选择--</option>
									<c:forEach var="lstConstZoneProvince" items="${lstConstZoneProvince}">
						<option value="${lstConstZoneProvince.getZoneID()}" <c:if test="${strProvinceID==lstConstZoneProvince.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneProvince.getZoneName()}</option>
						</c:forEach>
							</select> 
							<select class='select-height input-select-vlign ZoneID' name='strCityID'
								emptyOption='false'>
									<option value="" <c:if test="${strCityID==''}"> selected="selected"</c:if>>--请选择--</option>
									<c:forEach var="lstConstZoneCity" items="${lstConstZoneCity}">
											<option value="${lstConstZoneCity.getZoneID()}" <c:if test="${strCityID==lstConstZoneCity.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneCity.getZoneName()}</option>
										</c:forEach>
							</select>
							<br>
							<span><label for="strHotelPrice1" class="seachfont"> 价格区间:</label></span>
							<input type="number" step="0.01"  id="strHotelPrice1" class="input-width" name="strScenicPrice1" maxlength="18" value="${strHotelPrice1}"/>
							<font class="fontsize">元</font>--
							<input type="number" step="0.01"  id="strHotelPrice2" class="input-width" name="strScenicPrice2" maxlength="18" value="${strHotelPrice2}" /><font class="fontsize">元</font>
							<span><label for="HotelType" class="seachfont">酒店类型：</label></span>
							<select class="select-height input-select-vlign" id="HotelType" name="Type">
								<option value="">不限</option>
								<option value="0">星级酒店</option>
								<option value="1">快捷酒店</option>
								<option value="2">民宿 </option>
								<option value="3">别墅</option>
							</select> 
						
								<input type="submit" class="btn btnheight "  value="搜索" />
							</h4>	
							
							</form>
						</div>		
					 </div ></div>
				</header>

				<section class="container">
					
					<div class="portfolios portfolios-page">
					 <c:forEach items="${lstHotelBase}" var="lstHotelBase" varStatus="status">
					 
					 
					 	<div class="row" id="scenicrow">
					<div class="span-3 col">
						<div class="portfolios-box">
						  
						<a href="/mmy/tofronthotelbaseinfo?iHotelID=${lstHotelBase.getHotelID()}">
								<img src="imges/${lstHotelBase.getImgPath() }" alt="${lstHotelBase.getHotelName()}" title="${lstHotelBase.getHotelName()}"/>
						</a>	
						</div>
					</div>
				
					<div class="span-6 col" >
						
							<div class="paddingtop3">
						<a href="/mmy/tofronthotelbaseinfo?iHotelID=${lstHotelBase.getHotelID()}">
							<strong>${lstHotelBase.getHotelName()}</strong>
						</a>		
								<font class="scenicrate">${lstHotelBase.getRate()}</font>
								&nbsp;&nbsp;
							</div>
							<div class="paddingtop2">
							<label class="scenicintro">“${lstHotelBase.getIntro()}”</label>
							</div>
							<div class="paddingtop3">
							
								<font class="scenicadd"><i class="fa fa-map-marker"   aria-hidden="true" ></i>${lstHotelBase.getZoneName()}${lstHotelBase.getAddress()}
								</font>
								
							</div>
					
							
					</div>
					<div class="span-3 col paddingtop2">
					<div class="scenicprice">
						<c:forEach items="${lstHotelPlan}" var="lstHotelPlan">
								<c:if
									test="${lstHotelPlan.getHotelID() eq lstHotelBase.getHotelID()}">
									<font class="scenicprice1">惊爆价:</font>
										<div class="scenicprice2" >
										<div class="at-float-right">
										<font class="scenicprice3">￥</font>
										<font class="scenicprice4">${lstHotelPlan.getPrice()}</font>
										<font class="scenicprice3">起</font>
								</div>
								</div>
								</c:if>
						</c:forEach>
							
							<input type="button" class="btns" value="预留" onclick="reserveHotel(${lstHotelBase.getHotelID()},${tSysUser.getUserID() })" />&nbsp;&nbsp;
					</div>
					</div>
				</div>
		 
			
							</c:forEach>	
	 </div>
				</section>
				<center>
					<a href="tofronthotelindex?pageNumber=1&pageSize=${iPageSize}&strHotelName=${strHotelName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strHotelPrice1}&strScenicPrice2=${strHotelPrice2}">首页</a>
						<c:choose>
							<c:when test="${iPageNo == 1}">
						
							</c:when>
							<c:otherwise>
								<a href="tofronthotelindex?pageNumber=${iPageNo-1}&pageSize=${iPageSize}&strHotelName=${strHotelName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strHotelPrice1}&strScenicPrice2=${strHotelPrice2}">上一页</a>
							</c:otherwise>
						
						</c:choose>
						<c:choose>
							<c:when test="${iPageNo == iMaxPage}">
						
							</c:when>
							<c:otherwise>
								<a href="tofronthotelindex?pageNumber=${iPageNo+1}&pageSize=${iPageSize}&strHotelName=${strHotelName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strHotelPrice1}&strScenicPrice2=${strHotelPrice2}">下一页</a>
							</c:otherwise>
						
						</c:choose>
							<a href="tofronthotelindex?pageNumber=${iMaxPage}&pageSize=${iPageSize}&strHotelName=${strHotelName }&strProvinceID=${strProvinceID }&strCityID=${strCityID}&strScenicPrice1=${strHotelPrice1}&strScenicPrice2=${strHotelPrice2}">尾页</a>
						</center>
				
		 	</article>
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Body End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Script Embed Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Slider -->
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		<script>
			new GridScrollFx( document.getElementById( 'news-grid' ), {
				viewportFactor : 0.4
			} );
		</script>


</body>

</html>